﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PersistenceCommons
{
   public class AnalysisObject
    {
        private int mAnalysisObjectOID;
        private string mAnalysisObjectPID;
        private string mAnalysisObjectPackagePID;
        private DateTime mAnalysisDate;
        private DateTime mFactoryDate;
        private LoginUser mAnalysisUser;
        private IList <AnalysisObjectComponent> mAnalysisComponent = new List<AnalysisObjectComponent>();

       //public AnalysisObject ()
       //{
       //    mAnalysisComponent = new List<AnalysisObjectComponent>();
       //}

        public int analysisObjectOID
        {
            get
            {
                return mAnalysisObjectOID;
            }
            set
            {
                mAnalysisObjectOID = value;
            }

        }

        public string analysisObjectPID
        {


            get
            {
                return mAnalysisObjectPID;
            }

            set
            {
                mAnalysisObjectPID = value;
            }

        }

        public string analysisObjectPackagePID
        {


            get
            {
                return mAnalysisObjectPackagePID;
            }

            set
            {
                mAnalysisObjectPackagePID = value;
            }

        }

        public DateTime analysisDate
        {
            get
            {
                return mAnalysisDate;
            }
            set
            {
                mAnalysisDate = value;
            }


        }


        public DateTime factoryDate
        {
            get
            {
                return mFactoryDate;
            }
            set
            {
                mFactoryDate = value;
            }


        }

        public LoginUser analysisUser
        {

            get
            {
                return mAnalysisUser;
            }

            set
            {
                mAnalysisUser = value;
            }
        }

        public IList<AnalysisObjectComponent> analysisObjectComponent
        {

            get
            {
                return mAnalysisComponent;
            }

            set
            {
                mAnalysisComponent = value;
            }
        }

        public AnalysisObjectComponent getAnalysisObject(int itemToRetrieve)
        {
            return mAnalysisComponent[itemToRetrieve];
        }

        public void AddAnalysisObject(AnalysisObjectComponent AnalysisObjectToAdd)
        {
            mAnalysisComponent.Add(AnalysisObjectToAdd);
        }
    }
}
